/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.framework.core.impl;

import com.cqcis.uip.base.framework.codec.text.TextProtocolDecoder;
import com.cqcis.uip.base.framework.codec.text.TextProtocolEncoder;
import com.cqcis.uip.base.framework.handlers.ClientService;

/**
 * telnet服务定义
 * 
 * @author huangmy
 * @date   2008-8-10
 */
public class TelnetConnectorServiceAdaptor extends ConnectorServiceAdaptor {
	private TextProtocolDecoder textProtocolDecoder; // 解码
	private TextProtocolEncoder textProtocolEncoder; // 编码
	
    public void init() {
    	setObjectDecoder(this.textProtocolDecoder);// 
    	setObjectEncoder(this.textProtocolEncoder);// 
    }
    
    public void setService(ClientService service) {    	
    	super.setService(service);
    }

	public void setTextProtocolDecoder(TextProtocolDecoder textProtocolDecoder) {
		this.textProtocolDecoder = textProtocolDecoder;
	}

	public void setTextProtocolEncoder(TextProtocolEncoder textProtocolEncoder) {
		this.textProtocolEncoder = textProtocolEncoder;
	}
}
